/**
 * 
 */
package core;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import util.Constants;

/**
 * @author Xiaohui
 * 
 */
public class TestTrajIndex extends TestCase implements Constants {
	// static String filepath = "D:/temp/test.txt";
	TrajIndex traj;

	// String[] strArray = { "newpoint	0	1	0	0	16613	12855	298	16594	12869",
	// "newpoint	1	1	0	0	13422	26258	298	13590	26176",
	// "newpoint	2	1	0	0	14826	21162	672	14758	21135",
	// "newpoint	3	1	0	0	17566	28787	672	17042	29019",
	// "point	3	2	0	1	16952.8797	29061.96871	672	16818	29127",
	// "point	2	2	0	1	14627.35672	21449.75999	448	14758	21135",
	// "point	1	2	0	1	13540.6351	26076.51846	298	13590	26176",
	// "point	0	2	0	1	16332.72505	12952.82643	298	16594	12869"
	//
	// };

	public TestTrajIndex(String name) {
		super(name);
		traj = new TrajIndex();
	}

	public void testGetPointWithId() {
//		System.out.println("====In testGetPointWithId======");
////		List<CheckPoint> cps = traj.getPointsWithID(normFile);
//		System.out.println(cps.size());
//		System.out.println("id\ttime_interval\tobj_id");
//		for (CheckPoint cp : cps) {
//			System.out.println(cp);
//		}
	}

	public void testSet() {
		Set<Integer> s = new HashSet<Integer>();
		s.add(0);
		s.add(1);
		System.out.println(s);

	}

	public void testInsertIntoDB() {
		traj = new TrajIndex();
//		traj.insertIntoDB(normFile);
	}

	public static Test suite() {
		TestSuite suite = new TestSuite();
		// suite.addTest(new TestJunctions("testCollection"));

		// suite.addTest(new TestJunctions("testJunction"));

		// suite.addTest(new TestJunctions("testJunctions"));
		// suite.addTest(new TestTrajIndex("testGetPointWithId"));
		suite.addTest(new TestTrajIndex("testInsertIntoDB"));
		return suite;
	}
}
